package com.qinglei.recoup.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 楼层表
 *
 * @author syp
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_floor")
@ApiModel(value = "Floor对象", description = "楼层表")
public class Floor implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "楼层ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "楼层名称")
    private String name;

    @ApiModelProperty(value = "楼ID")
    private Integer buildingId;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime modifyTime;

    @ApiModelProperty(value = "租户ID")
    private Integer tenantId;

    @ApiModelProperty(value = "0-未删除 1-已删除")
    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty(value = "床位数量")
    private Integer bedCnt;


    @ApiModelProperty(value = "离床时间阈值 格式hh:mm:ss")
    private String outBedTimeout;

    @ApiModelProperty(value = "离床时间阈值是否统一 1-是 0-否")
    private Integer outBedTimeoutUnified;

    @ApiModelProperty(value = "监测时间是否统一 1-是 0-否")
    private Integer monitorTimeUnified;

}
